import request from '@/config/axios'

// 护理级别对应的护理内容 VO
export interface NurseLevelContentVO {
  id: number // id
  nurseLevelId: number // 护理级别ID
  nurseContentId: number // 护理内容ID
}

// 护理级别对应的护理内容 API
export const NurseLevelContentApi = {
  // 查询护理级别对应的护理内容分页
  getNurseLevelContentPage: async (params: any) => {
    return await request.get({ url: `/yyzx/nurse-level-content/page`, params })
  },

  // 查询护理级别对应的护理内容详情
  getNurseLevelContent: async (id: number) => {
    return await request.get({ url: `/yyzx/nurse-level-content/get?id=` + id })
  },

  // 新增护理级别对应的护理内容
  createNurseLevelContent: async (data: NurseLevelContentVO) => {
    return await request.post({ url: `/yyzx/nurse-level-content/create`, data })
  },

  // 修改护理级别对应的护理内容
  updateNurseLevelContent: async (data: NurseLevelContentVO) => {
    return await request.put({ url: `/yyzx/nurse-level-content/update`, data })
  },

  // 删除护理级别对应的护理内容
  deleteNurseLevelContent: async (id: number) => {
    return await request.delete({ url: `/yyzx/nurse-level-content/delete?id=` + id })
  },

  // 导出护理级别对应的护理内容 Excel
  exportNurseLevelContent: async (params) => {
    return await request.download({ url: `/yyzx/nurse-level-content/export-excel`, params })
  },
}